package com.aura.bookshop.service.impl;

import com.aura.bookshop.entity.User;
import com.aura.bookshop.mapper.UserMapper;
import com.aura.bookshop.service.UserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public User login(User user) {
        User user1 = userMapper.findUser(user);
        return user1;
    }



//    @Override
//    public User queryById(Long id) {
//        return userMapper.selectByPrimaryKey(id);
//    }
//
//    @Override
//    public int deleteById(Long id) {
//        return userMapper.deleteByPrimaryKey(id);
//    }
//
//    @Override
//    public List<User> list() {
//        return userMapper.selectAll();
//    }
//
//    @Override
//    public int save(User user){
//        return userMapper.insert(user);
//    }
//
//    @Override
//    public int update(User user){
//        return userMapper.updateByPrimaryKey(user);
//    }
}
